package com.smalldoor.thread.demo03;

//线程的优先级
public class ThreadPriority {

    public static void main(String[] args) {
        System.out.println(Thread.currentThread().getName() + "当前的优先级为：" + Thread.currentThread().getPriority());


    }
}

class MyPriority implements Runnable{

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName() + "当前的优先级为：" + Thread.currentThread().getPriority());
    }
}
